package net.neptech.model.sys;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.*;
import lombok.Data;
import net.neptech.utils.SnowflakeIdGenerator;
import org.hibernate.annotations.GenericGenerator;

import java.io.Serial;
import java.io.Serializable;
/**
 * @Author Saya
 * @Date 2025/8/12 16:05
 * @Description TODO
 **/
@Entity
@Table(name = "sys_position")
@TableName("sys_position")
@Data
public class Position implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Id
    @GenericGenerator(name = "snowflake", type = SnowflakeIdGenerator.class)
    @GeneratedValue(generator = "snowflake")
    @Column(name = "position_id", nullable = false)
    @TableId
    public Long positionId;

    @Column(name = "position_name", columnDefinition = "varchar(255)")
    public String positionName;
}
